package com.dst.smart.threadpool;


import com.dst.smart.webservice.AiuiDataServiceUtils;
import com.dst.smart.webservice.SongServiceUtils;

public class ThreadPoolTaskAiui extends ThreadPoolTask {
	private String DataName;
	private String DataType;
	private String DataText;
	private String MasterID;
	private String ToID;
	private static final String TAG = "ThreadPoolTaskBitmap";

	private CallBack callBack;

	public ThreadPoolTaskAiui(String DataName, String DataType,
							  String DataText,String MasterID,String ToID) {
		super("","");
		this.DataName = DataName;
		this.DataType = DataType;
		this.DataText = DataText;
		this.MasterID=MasterID;
		this.ToID=ToID;
	}

	@Override
	public void run() {
		// Process.setThreadPriority(Process.THREAD_PRIORITY_LOWEST);

		try {
			String result = AiuiDataServiceUtils.instance.insertAiuiData(getDataName(),getDataType(),getDataText(),getMasterID(),getToID());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	public String getDataName() {
		return DataName;
	}

	public void setDataName(String dataName) {
		DataName = dataName;
	}

	public String getDataType() {
		return DataType;
	}

	public void setDataType(String dataType) {
		DataType = dataType;
	}

	public String getDataText() {
		return DataText;
	}

	public void setDataText(String dataText) {
		DataText = dataText;
	}


	public String getToID() {
		return ToID;
	}

	public void setToID(String toID) {
		ToID = toID;
	}

	public String getMasterID() {
		return MasterID;
	}

	public void setMasterID(String masterID) {
		MasterID = masterID;
	}

	public interface CallBack {
		public void onReady(String result);
	}


}
